package com.aconcagua.beans {
  import com.aconcagua.factory.BeanFactory;
  
  [DefaultProperty("entries")]
  public class Map implements ValueHolder {
    public var entries:Array;
    
    public function getValue(factory: BeanFactory): Object {
      var dictionary: Object = new Object();

      for each(var entry: Entry in entries) {
        dictionary[entry.key] = entry.getValue(factory);
      }
      
      return dictionary;
    }
  }
}